package com.hyh.spring.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @BelongsPackage: com.hyh.spring.config
 * @ClassName ApplicationContextConfig
 * @Author: hyhWTX
 * @CreateTime: 2023-05-12  17:32
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Configuration
public class ApplicationContextConfig
{
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate()
    {
        return new RestTemplate();
    }
}